<?php if ($tasks->count()==0){
  ?><p class="note_detail"><small><?php echo "There are no tasks against this milestone" ?></small></p><?php
}
else {
?>
<table width="100%" style="padding-left:5px">
  <thead>
  <tr class="style2" background="/images/mainpage-sliced_11.jpg">
    <td><strong>Description</strong></td>
    <td><strong>Resource</strong></td>        
	<td><strong>Status</strong></td>
  </tr>
  </thead>
<?php foreach ($tasks as $i => $task): ?>
  <tr align="left" class="regulartext_<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
	<td style="text-decoration:underline">	
	  <a href="<?php echo url_for('task/show?taskid='.$task->getTaskid()) ?>">
		<?php echo $task->getShortsummary()?>
	  </a>
	</td>
	<td><?php echo $task->getResource()->getName(); ?></td>        
	<td><?php echo $task->getTaskstatus(); ?></td>
  </tr>
<?php endforeach; ?>
</table>
<?php }?>

